/*
 * Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
 

package com.jinbooks.entity.journal;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinbooks.entity.BaseEntity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("jbx_journal_summary")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JournalSummary   extends BaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3985387028842942483L;

	@TableId(type = IdType.ASSIGN_ID)
    String id;
	/**
	 * 账套编码
	 */
	String bookId;
	/**
	 * 年度N期
	 */
	Integer yearPeriod;
	
	/**
	 * 年度
	 */
	Integer years;
	
	/**
	 * 第*期
	 */
	Integer periods;
	
	/**
	 * 账户类型：现金cash  银行deposit
	 */
	String category;

	/**
	 * 账户编码
	 */
	String accCode;
	
	/**
	 * 账户名称
	 */
	String accName;
	
	/**
	 * 币种
	 */
	String currency;
	
	/**
	 * 期初余额
	 */
	BigDecimal openingBalance;
	
	/**
	 * 期末余额
	 */
	BigDecimal closingBalance;
	
	/**
	 * 收入
	 */
	BigDecimal income;
	
	/**
	 * 支出
	 */
	BigDecimal expenditure;
	
	/**
	 * 年初到本月收入
	 */
	BigDecimal yearIncome;
	
	/**
	 * 年初到本月支出
	 */
	BigDecimal yearExpenditure;
	
	/**
	 * 描述
	 */
	String description;
	
	/**
     * 删除标记
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "n", delval = "y")
    private String deleted;
}
